// pages/demo14/demo14.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    gender: ""
  },
  getGender(e){
    console.log(e)
    let gen = e.detail.value;
    if(gen !== "male"){
      this.setData({
        gender: "女"
      })
    }else{
      this.setData({
        gender: "男"
      })
    }
  }
})